import os,sys


def Get_Stack():
    retStr=''
    f = sys._getframe()
    f = f.f_back  # first frame is detailtrace, ignore it
    while hasattr(f, "f_code"):
        co = f.f_code
        retStr = "%s(%s:%s)->\r\n"%(co.co_filename, co.co_name, f.f_lineno) + retStr
        f = f.f_back
    print(retStr)